//
//  TeacherInfoModel.m
//  SDSY
//
//  Created by 蓝布鲁 on 2017/4/10.
//  Copyright (c) 2017 蓝布鲁. All rights reserved.
//

#import "TeacherInfoModel.h"
#import "TeacherOrderTimeModel.h"

@implementation TeacherInfoModel


- (void)setEvalution:(NSArray *)evalution {
    // 转化为模型
    NSMutableArray *mArray = [[NSMutableArray alloc] init];
    for (NSDictionary *dictionary in evalution) {
        TeacherEvalutionModel *model = [[TeacherEvalutionModel alloc] initWithDictionary:dictionary];
        [mArray addObject:model];
    }
    _evalution = mArray;
}

- (void)setTimes:(NSArray *)times {
    // 转化为模型
    NSMutableArray *mArray = [[NSMutableArray alloc] init];
    for (NSDictionary *dictionary in times) {
        TeacherOrderTimeModel *model = [[TeacherOrderTimeModel alloc] initWithDictionary:dictionary];
        [mArray addObject:model];
    }
    _times = mArray;
}
@end
